package com.xs.designpattern;

import lombok.SneakyThrows;

/**
 * 实现Cloneable克隆接口
 * @author xs
 */
public abstract class Prototype<T> implements Cloneable {
    @SuppressWarnings("unchecked")
    @SneakyThrows
    public T copy() {
        return (T)super.clone();
    }
}
